﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TA.DotNetUtils;
using TA.Turbo.Controls;

namespace TA.Turbo.Design
{
	/// <summary>
	/// Provides an interface to get a list of IDs of control reference groups on a page.
	/// </summary>
	public class ControlReferenceGroupIdLister : BaseControlIdLister
	{
		/// <summary>
		/// Determines and returns a flag which indicates whether the specified control should be included in the result.
		/// </summary>
		/// <param name="c"></param>
		/// <returns></returns>
		protected override bool ControlMatches(System.Web.UI.Control c)
		{
			return c is ControlReferenceGroup;
		}
		/// <summary>
		/// Gets the scope where to look for the controls.
		/// </summary>
		protected override ControlIdListingScope Scope
		{
			get
			{
				return ControlIdListingScope.Both;
			}
		}
	}
}
